package com.example.design_pattern.factory;

import com.example.design_pattern.domain.Apple;
import com.example.design_pattern.domain.Fruit;

public class AppleFactory implements FruitFactory{

    /**
     * 生产水果
     */
    @Override
    public Fruit createFruit() {
        return new Apple();
    }

}
